﻿using System;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;


namespace FixtureManageSystem
{
    public static class SqlHelper
    {
        // 获取数据库连接  返回连接对象

        public static SqlConnection GetConn()
        {
            string ConStr = ConfigurationManager.ConnectionStrings["DataFormConnection"].ConnectionString;
            // 创建连接
            SqlConnection SqlCon = new SqlConnection(ConStr);
            return SqlCon;
        }

    }
}
